package com.example.movie.ui.home.tabs.model

import android.widget.ImageView
import com.qmuiteam.qmui.widget.section.QMUISection


class SectionHeader(val text: String?, private val imageView: ImageView?) :
    QMUISection.Model<SectionHeader> {

    override fun cloneForDiff(): SectionHeader {
        return SectionHeader(text, imageView)
    }

    override fun isSameItem(other: SectionHeader): Boolean {
        return text != null && text == other.text && imageView != null && imageView == other.imageView
    }

    override fun isSameContent(other: SectionHeader): Boolean {
        return true
    }

}